import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/api/backend/basics/signin',
    method: 'post',
    data
  })
}

export function logout () {
  return request({
    url: '/api/backend/basics/logout',
    method: 'post',
  })
}

export function stores_info (id, params = {}) {
  return request({
    url: `/api/backend/stores/${id}`,
    method: 'get',
    params
  })
}
